package cn.stylefeng.guns.modular.storage.mapper;

import cn.stylefeng.guns.modular.storage.entity.StorageStockManagement;
import cn.stylefeng.guns.modular.storage.model.params.StorageStockManagementParam;
import cn.stylefeng.guns.modular.storage.model.result.StorageStockManagementResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 存货处置记录 Mapper 接口
 */
public interface StorageStockManagementMapper extends BaseMapper<StorageStockManagement> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    List<StorageStockManagementResult> customList(@Param("paramCondition") StorageStockManagementParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") StorageStockManagementParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    Page<StorageStockManagementResult> customPageList(@Param("page") Page page, @Param("paramCondition") StorageStockManagementParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") StorageStockManagementParam paramCondition);

}
